import axios from './axios'

export function getClerk(params){
    return axios({
        url:'/personnel/list',
        params
    })
}

export function getDepartmentList(){
    return axios({
        url:'/personnel/getDepartmentList'
    })
}

export function addClerk(params){
    return axios({
        method: 'post',
        url:'/personnel/insert',
        params
    })
}

export function delClerk(params){
    return axios({
        method: 'delete',
        url:'/personnel/delete',
        params
    })
}

export function getClerk1(){
    return axios({
        url:'/personnel/getDepartmentList' 
    })
}

export function update(params){
    return axios({
        method: 'put',
        url:'/personnel/update',
        params
    })
}